//package com.waste.game.controller;
//
//import com.waste.game.mapper.WebServeMapper;
//import com.waste.game.service.UserService;
//import org.springframework.beans.factory.annotation.Autowired;
////import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
//import org.springframework.stereotype.Controller;
//import org.springframework.web.bind.annotation.GetMapping;
//import org.springframework.web.bind.annotation.PostMapping;
//
//import javax.servlet.http.HttpServletRequest;
//
//@Controller
//public class loginController {
//
//    @Autowired
//    private UserService userService;
//    @Autowired
//    private WebServeMapper webServeMapper;
//
//
//    @GetMapping("/login")
//    public String loginGet(){
////        BCryptPasswordEncoder encoder = new BCryptPasswordEncoder();
////        System.out.println(encoder.encode("1518561299mc.whd"));
////        webServeMapper.instpass(encoder.encode("1518561299mc.whd"));
//        return "clint/login";
//    }
//
//    //退出登录
//    @PostMapping("/loginout")
//    public String loginOut(HttpServletRequest request){
//        request.getSession().removeAttribute("NewUser");
//        return "ok";
//    }
//}
